package com.huluobo.a2110mvpimdemo.chat;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import com.huluobo.a2110mvpimdemo.R;
import com.hyphenate.easeui.modules.chat.EaseChatFragment;

public class ChatActivity extends AppCompatActivity {
    private ChatFragment chatFragment;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_chat);

        //use EaseChatFratFragment
        chatFragment = new ChatFragment();
        //pass parameters to chat fragment
        chatFragment.setArguments(getIntent().getExtras());
        getSupportFragmentManager().beginTransaction().add(R.id.container, chatFragment).commit();
    }
}